package cn.platform.service;

import cn.platform.entity.SchAnnounce;
import cn.platform.request.SchAnnounceQueryDTO;
import cn.platform.response.PageResult;
import cn.platform.response.SchAnnounceVO;

import java.util.List;

public interface SchAnnounceService {
    PageResult<SchAnnounceVO> page(SchAnnounceQueryDTO announcementQueryDTO);

    SchAnnounceVO detail(Integer id);

    void save(SchAnnounce schAnnounce);

    void update(SchAnnounce schAnnounce);

    void delete(Integer id);

    void deleteBatch(List<Integer> ids);

    void toggleTop(SchAnnounce schAnnounce);

    void toggleStatus(SchAnnounce schAnnounce);
}
